#include <myhead.h>
#include "mytime.h"

char* mytime_now(){
	static char nowTime[100]={0};
    time_t t=time(NULL);
    struct tm* tm=localtime(&t);
    sprintf(nowTime,"%4d-%02d-%02d %02d:%02d:%02d",
            tm->tm_year+1900,
            tm->tm_mon+1,
            tm->tm_mday,
            tm->tm_hour,
            tm->tm_min,
            tm->tm_sec);
    return nowTime;
}

